#ifndef MAINQMLHANDLER_H
#define MAINQMLHANDLER_H

#include <QObject>
#include <QDebug>

class MainQmlHandler : public QObject
{
    Q_OBJECT
private:

    QString text_;

public:
    explicit MainQmlHandler(QObject *parent = nullptr);

    Q_INVOKABLE void getFromQml(QString text) {
           text_ = text;
           qDebug() << text_ << "#############" << text;
    }

public slots:
    void handleTextChanged(const QString& newText)
    {
        qDebug() << "Text changed:" << newText;
    }

signals:

};

#endif // MAINQMLHANDLER_H
